
package com.comdev.init;

import com.comdev.orm.ut.ClassMapping;
import org.nutz.resource.Scans;

import java.util.List;

/**
 * User: zhu
 * Date: 13-5-1
 * Time: 上午1:03
 */
public class TableGernerate
{

    public static void main(String[] args)
    {
        TableGernerate t = new TableGernerate();
        t.init();
    }

    private void init()
    {
        //创建表完毕
        Scans scan = Scans.me();
        List<Class<?>> list = scan.scanPackage("com.comdev.vos");
        for (int i = 0; i < list.size(); i++)
        {
            try
            {
                ClassMapping.CreateTable(list.get(i));
            } catch (Exception e)
            {
            }
        }

        //开始填充初始化数据


    }


    public void test()
    {
        init();
    }
}
